//
//  Y2EventBus.h
//  Y2Router
//
//  harry.tong on 2021/6/3.

#ifndef Y2RouterModuleProtocol_h
#define Y2RouterModuleProtocol_h

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    /// 插件
    ModuleForPluginType,
    /// 渠道
    ModuleForChannelType,
    /// SuperSDK
    ModuleForSuperType,
    /// SDKConnect
    ModuleForConnectType
} Y2ModuleType;


@protocol Y2EventBusProtocol <UIApplicationDelegate>

@optional

/// 是否初始化成功，不实现，默认为true
-(BOOL) moduleIsInit;

/// 类型
-(Y2ModuleType) moduleType;


-(NSString *) moduleName;

/// 初始化
-(void) initInfo;

/// SDK状态变更
-(void) moduleStatusWithChange:(int)status info:(NSDictionary *)info;


@end



#endif /* Y2RouterModuleProtocol_h */
